/*package tp.pr5.gui;

import javax.swing.JOptionPane;

import tp.pr5.Game;
import tp.pr5.Map;
import tp.pr5.MensajesConst;
import tp.pr5.Parser;
import tp.pr5.Player;
import tp.pr5.Room;
import tp.pr5.commands.Command;
import tp.pr5.commands.exceptions.CommandExecutionException;
import tp.pr5.commands.exceptions.WrongCommandFormatException;

public class GameGUI extends Game
{

	// metodos nuevos
	String message=null;
	public String executeStep(String line)
	{

		try
		{

			
			
			if (_exit || this._friki.dead())
				message= MensajesConst.adios;
			else {
			Command auxCommand = Parser.parseCommand(line, this);
			auxCommand.configureContext(this, this._mapa, this._friki);
			auxCommand.execute();
			
			message= null;

			}
		} catch (WrongCommandFormatException e)
		{
			
			message= MensajesConst.what;
		} catch (CommandExecutionException e)
		{
			
			message= e.getMessage();
		}
		if (message!=null)
			JOptionPane.showMessageDialog(null, message);
	return message;
	}
	// -----------

	public GameGUI(Map map)
	{
		super(map);
		// TODO Auto-generated constructor stub
	}
	
	@Override public void setCurrentRoom(Room currentRoom)
	{
		// TODO Auto-generated method stub
		super.setCurrentRoom(currentRoom);
	}

	@Override public void setSalida(boolean exit)
	{
		// TODO Auto-generated method stub
		super.setSalida(exit);
	}

	@Override public Room getCurrentRoom()
	{
		// TODO Auto-generated method stub
		return super.getCurrentRoom();
	}

	

	/**
	 * @deprecated No hace nada ahora (es una GUI)
	 * @see executeStep
	 * 
	 *//*
	@Override @Deprecated public void runGame()
	{

	}

	@Override public void requestQuit()
	{
		super.requestQuit();
		JOptionPane.showMessageDialog(null, MensajesConst.finJuego);
	}



}
*/